// pages/party/party.js
var party_notices_list = require('../../data/notice/party.js').notices_list
Page({

  data: {

  },

  onLoad: function (options) {
    var banner_notices = []
    for(var i=0; i<party_notices_list.length; i++){
      if(party_notices_list[i].top_status==true){
        banner_notices.push(party_notices_list[i])
      }
    }
    this.setData({
      party_notices: party_notices_list,
      banner_notices: banner_notices
    })
  },
  onNoticeTap: function (e){
    var notice_id = e.currentTarget.dataset.notice_id
    wx.navigateTo({
      url: '../notice/single_notice/single_notice?id=' + notice_id,
    })
  }
})